var Encore = require('@symfony/webpack-encore');
const webpack = require('webpack');
Encore
  .setOutputPath('web/build')
  .setPublicPath('/build')
  .cleanupOutputBeforeBuild()

  .enableSassLoader()


  .autoProvidejQuery()

  .addPlugin(   new webpack.ProvidePlugin( {Popper:['popper.js','default']}
))

  .enableSourceMaps(!Encore.isProduction())

  .addEntry('app','./assets/js/main.js')

;

module.exports = Encore.getWebpackConfig();
